module.exports = {
  lintOnSave: false,
  devServer: {
    port: 8081, // 学生端前台使用8081端口，避免与教师端冲突
    open: true,
    proxy: {
      '/api': {
        target: 'http://localhost:8080', // 确保这里指向后端服务的地址和端口
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api'
        }
      }
    }
  },
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "@/assets/css/variables.scss";`
      }
    }
  }
} 